// @author Tjzlo
// @version 2025/2/24 23:28

package com.old.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostDTO {
    private Integer id;//后端sql传入id
    private String imageUrl;//帖子图片

    private Integer authorId;//作者id
    private String name;//作者名字
    private String avatar;//作者头像

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间

    private String title;//帖子标题
    private String content;//帖子文案

    private String likeMan;//点赞者idList
    private int like;//点赞数

    private boolean isGood; //观看者是否点赞

    private int isShow; //帖子状态:0审核中，1已审核

}
